﻿using System;

namespace MessagePack.Formatters
{
	// Token: 0x02000034 RID: 52
	public class Int64Formatter : IMessagePackFormatter<long>
	{
		// Token: 0x060000BF RID: 191 RVA: 0x000040D3 File Offset: 0x000024D3
		private Int64Formatter()
		{
		}

		// Token: 0x060000C0 RID: 192 RVA: 0x000040DB File Offset: 0x000024DB
		public int Serialize(ref byte[] bytes, int offset, long value, IFormatterResolver formatterResolver)
		{
			return MessagePackBinary.WriteInt64(ref bytes, offset, value);
		}

		// Token: 0x060000C1 RID: 193 RVA: 0x000040E5 File Offset: 0x000024E5
		public long Deserialize(byte[] bytes, int offset, IFormatterResolver formatterResolver, out int readSize)
		{
			return MessagePackBinary.ReadInt64(bytes, offset, out readSize);
		}

		// Token: 0x04000028 RID: 40
		public static readonly Int64Formatter Instance = new Int64Formatter();
	}
}
